package com.example.demo.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @author: Bin.L
 * @date: 2021/4/8 0008 18:16
 * @Description: {https://my.oschina.net/u/4258523/blog/3419617  https://www.cnblogs.com/jmcui/p/11054756.html  https://www.cnblogs.com/summerday152/p/14166152.html}
 */
public class MessageEvent extends ApplicationEvent {

    @Getter
    @Setter
    private String message;

    public MessageEvent(Object source) {
        super(source);
    }

    public MessageEvent(Object source, String message) {
        super(source);
        this.message = message;
    }

}
